//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Mapping Application Block
//===============================================================================

using System;

namespace EntLibContrib.Mapping.Instrumentation
{
	/// <summary>
	/// Provides data for the <see cref="MappingInstrumentationProvider.MappingTo"/> event.
	/// </summary>
	public class MappingToEventArgs : EventArgs
	{
		#region Fields
		private MapperType mapperType;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the type of the mapper.
		/// </summary>
		/// <value>The type of the mapper.</value>
		public MapperType MapperType
		{
			get { return mapperType; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="MappingToEventArgs"/> class.
		/// </summary>
		/// <param name="mapperType">Type of the mapper.</param>
		public MappingToEventArgs(MapperType mapperType)
		{
			this.mapperType = mapperType;
		}
		#endregion
	}
}